package com.carter.springframework.context;

import com.carter.springframework.beans.exception.BeanException;
import com.carter.springframework.beans.factory.Aware;

/**
 *实现此接口，即可感知到所属的ApplicationContext
 */
public interface ApplicationContextAware extends Aware {

    /**
     * 设置ApplicationContext
     * @param applicationContext
     * @throws BeanException
     */
    void setApplicationContext(ApplicationContext applicationContext) throws BeanException;
}
